Set Digital Output Port
Function:
magician.set_do(io,level)Description: set the level of digital output port
Required parameter:
- io: io port number, data type: str, range: "DO_01"~"DO_20"
- level: output level, 0: low level, 1: high level
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magician.set_do(io="DO_01", level=1)Set DO_01 port 1 to high level output.